package com.jiazhong.shixi.yemingxuan.boot.controller;


import com.jiazhong.shixi.yemingxuan.boot.util.JsonResult;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/first")
public class FirstController {
    //first/a
    @RequestMapping("/a")
    public String a() {
        return "a mi nuo i";

    }
    @RequestMapping("/b")
    public JsonResult b(){
        return new JsonResult<>(true,200,"ciallo!","");
    }
}
